<?php

namespace Model\QuestionBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Question
 *
 * @ORM\Table(name="question")
 * @ORM\Entity(repositoryClass="Model\QuestionBundle\Repository\QuestionRepository")
 */
class Question
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="UserId", type="integer")
     */
    private $userId = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="Type", type="integer")
     */
    private $type;

    /**
     * @var int
     *
     * @ORM\Column(name="Sort", type="integer")
     */
    private $sort = 0;

    /**
     * @var string
     *
     * @ORM\Column(name="Title", type="string", length=255, nullable=true)
     */
    private $title;

    /**
     * @var int
     *
     * @ORM\Column(name="AttachId", type="integer")
     */
    private $attachId = 0;

    /**
     * @var string
     *
     * @ORM\Column(name="Answer", type="string", length=255)
     */
    private $answer;

    /**
     * @var string
     *
     * @ORM\Column(name="AnswerAnalyze", type="text", nullable=true)
     */
    private $answerAnalyze;

    /**
     * @var float
     *
     * @ORM\Column(name="Difficulty", type="float")
     */
    private $difficulty;


    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set userId
     *
     * @param integer $userId
     *
     * @return Question
     */
    public function setUserId($userId)
    {
        $this->userId = $userId;

        return $this;
    }

    /**
     * Get userId
     *
     * @return int
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * Set type
     *
     * @param integer $type
     *
     * @return Question
     */
    public function setType($type)
    {
        $this->type = $type;

        return $this;
    }

    /**
     * Get type
     *
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Set sort
     *
     * @param integer $sort
     *
     * @return Question
     */
    public function setSort($sort)
    {
        $this->sort = $sort;

        return $this;
    }

    /**
     * Get sort
     *
     * @return int
     */
    public function getSort()
    {
        return $this->sort;
    }

    /**
     * Set title
     *
     * @param string $title
     *
     * @return Question
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set attachId
     *
     * @param integer $attachId
     *
     * @return Question
     */
    public function setAttachId($attachId)
    {
        $this->attachId = $attachId;

        return $this;
    }

    /**
     * Get attachId
     *
     * @return int
     */
    public function getAttachId()
    {
        return $this->attachId;
    }

    /**
     * Set answer
     *
     * @param string $answer
     *
     * @return Question
     */
    public function setAnswer($answer)
    {
        $this->answer = $answer;

        return $this;
    }

    /**
     * Get answer
     *
     * @return string
     */
    public function getAnswer()
    {
        return $this->answer;
    }

    /**
     * Set answerAnalyze
     *
     * @param string $answerAnalyze
     *
     * @return Question
     */
    public function setAnswerAnalyze($answerAnalyze)
    {
        $this->answerAnalyze = $answerAnalyze;

        return $this;
    }

    /**
     * Get answerAnalyze
     *
     * @return string
     */
    public function getAnswerAnalyze()
    {
        return $this->answerAnalyze;
    }

    /**
     * Set difficulty
     *
     * @param float $difficulty
     *
     * @return Question
     */
    public function setDifficulty($difficulty)
    {
        $this->difficulty = $difficulty;

        return $this;
    }

    /**
     * Get difficulty
     *
     * @return float
     */
    public function getDifficulty()
    {
        return $this->difficulty;
    }
}
